#!/usr/bin/env python
# encoding: utf-8
"""
GameInputView.py

Created by Steve Streza on 2008-09-22.
Copyright (c) 2008 __MyCompanyName__. All rights reserved.
"""

import sys
import os
from Tkinter import *

class GameInputView(Frame):
	
	input_frame = None
	
	def set_input_view(self, inputFrame):
		"""sets the currently displayed view"""
		self.remove_input_view()
		self.input_frame = inputFrame
#		self.input_frame.grid(in_=self)
		self.input_frame.grid(row=0,ipadx=0,ipady=0,padx=0,pady=0)
		pass
		
	def remove_input_view(self):
		"""removes the currently displayed view"""
		if self.input_frame != None:
#			self.input_frame.destroy()
			self.input_frame.grid_remove()
			self.input_frame = None
		pass
